import service from '@/utils/crmRequest'

export default () => ({
  GET_TOTAL: () => {
    return service({
      url: '/api/saleDetailStatistics/pageHome',
      method: 'get',
      donNotShowLoading: true,
    })
  },
  GET_STATISCS_DATA: (data) => {
    return service({
      url: '/api/saleDetailStatistics/pageHomeDetail',
      method: 'post',
      data,
      donNotShowLoading: true,
    })
  },
})
